const path = require('path')
console.log("path:",path)

module.exports = {
    entry:"./src/index.js",
    output:{
        filename:"bundle.js",
        path:path.resolve(__dirname,"dist")
    },
    module:{
        rules:[
            {
                "test":/\.css$/,
                "use":[
                    "style-loader",
                    "css-loader"
                ]
            },
            {
                "test":/\.(png|svg|jpg|jpeg|gif)$/,
                "use":[
                    "file-loader"
                ]
            },
            {
                "test":/\.(woff|woff2|eot|ttf|otf)$/,
                "use":[
                    "file-loader"
                 ]
            },
            {
                "test":/\.(csv|tsv)$/,
                "use":[
                    "css-loader"
                ]
            },
            {
                "test":/\.xml$/,
                "use":[
                    "xml-loader"
                ]
            }
        ]
    }
}
